<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>跑马灯</title>
    <script>
        var str = "究极无敌之王中王热烈欢迎李志杰董事长来我公司视察！"
        var i = 1;
        window.onload = function (){
            setInterval(fun,1000);
        }

        function fun(){
            if (i>str.length){
                i=1;
            }
            document.getElementById("information").innerText = str.substr(0,i);
            i++;
        }
    </script>
</head>
<body>
    <h3 id="information"></h3>
</body>
</html>